package com.agileboot.domain.system.danger.dto;

import com.agileboot.domain.system.danger.db.DangerSourceEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import cn.hutool.core.bean.BeanUtil;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DangerSourceDTO {

    private Long dangerSourceId;
    private String dangerSourceCode;
    private String dangerType;
    private String dangerSourceName;

    private String dangerSourceDescribe;
    private String harmDescribe;
    private String emergeCause;
    private String rootCause;
    private Long relatedReformId;
    private String relatedReformCode;
    private String correctiveAction;
    private Date correctiveDeadline;
    private String precautionAction;
    private Date precautionDeadline;
    private String actionMakerName;
    private Date actionMakeTime;
    private String riskCode;

    private Long relatedQuestionId;

    public DangerSourceDTO(DangerSourceEntity entity) {
        BeanUtil.copyProperties(entity, this);
    }
}
